package com.lonwan.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author susc
 * @title: StarterServiceProperties
 * @projectName starter-demo
 * @description: 配置文件读取类
 * @date 2021/9/269:40
 */
@ConfigurationProperties("example.service")
public class StarterServiceProperties {
    private String config;
    private boolean enabled;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getConfig() {
        return config;
    }
}
